package main

import (
	"fmt"
)

func main() {
	var input int
	input = 3 * 65535
	fmt.Printf("%b\n", input)

	fmt.Println(numberOf0(input))
}

func numberOf0(input int) int {
	var count int

	for input != 0 {
		if (input & 1) != 1 {
			count++
		}
		input = input >> 1
	}

	return count
}
